#include "util.h"

int * intNew(int value)
{
	int * p =  (int*)malloc(sizeof(int));
	*p = value;
	return p;
}

void intSet(int * pInt, int newValue)
{
	*(int*)pInt = newValue;
}

int intGet(int * pInt)
{
	return *(int*)pInt;
}

double * doubleNew(double value)
{
	double * p =  (double*)malloc(sizeof(double));
	*p = value;
	return p;
}

void doubleSet(double * p, double newValue)
{
	*(double*)p = newValue;
}

double doubleGet(double * p)
{
	return *(double*)p;
}

